#include <iostream>
#include"pollserver.hpp"
#include<string>
#include<cstdlib>
#include<stdio.h>
#include<cstring>
#include<fstream>
#include<unistd.h>
#include<sstream>
#include <memory>

int main(int argc,char*  argv[])
{
    if(argc!=2)
    {
        std::cout<<"Usage: "<<std::endl;
        return 1;
    }

    uint16_t locale_t=std::stoi(argv[1]);
    std::unique_ptr<PollSelect> sser=std::make_unique<PollSelect>(locale_t);
    sser->Init();
    sser->Star();
    return 0;
}